using System;
using UnityEngine;
using QFramework;

namespace Survivor
{
	public partial class CollectableArea : ViewController
	{
		private CircleCollider2D _collider;
		private void Awake()
		{
			_collider = GetComponent<CircleCollider2D>();
		}

		private void Start()
		{
			Global.PickUpRangeRate.RegisterWithInitValue((value) =>
			{
				_collider.radius = _collider.radius * value;
			}).UnRegisterWhenGameObjectDestroyed(gameObject);
		}
	}
}
